<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/pages/system/base.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>科研工作量录入</title>
</head>
<body>
	<div style="width:500px;height:300px; margin:0px auto; margin-top:150px">
		<form method="post" id="fm">
			<table cellpadding="5">
				<tr>
					<td>旧密码:</td>
					<td><input class="easyui-textbox" id="oldpwd" type="text"
						name="oldpwd" maxlength="20" required="true"
						missingMessage="必须填写"></input></td>
				</tr>
				<tr>
					<td>新密码:</td>
					<td><input class="easyui-textbox" id="newpwd" type="text"
						name="newpwd" maxlength="20" required="true"
						missingMessage="必须填写"></input></td>
				</tr>
			</table>
			<div id="dlg-buttons">
				<a href="#" class="easyui-linkbutton  save" onclick="save()"
					iconCls="icon-ok">保存</a> <a href="#"
					class="easyui-linkbutton cancel"
					onclick="javascript:$('#dlg').dialog('close')"
					iconCls="icon-cancel">取消</a>
			</div>
		</form>
	</div>

	<script type="text/javascript">
		function save() {
			$('#fm').form('submit', {
				url : 'accountManageController.do?updatepwd',
				onSubmit : function() {
					return $(this).form('validate');
				},
				success : function(result) {
					var result = eval('(' + result + ')');
					if (result.success) {
						$('#dlg').dialog('close');
						$('#dg').datagrid('reload');
						$.messager.show({
							title : '提示信息',
							msg : result.msg
						});
					} else {
						$.messager.show({
							title : '提示信息',
							msg : result.msg
						});
					}
				}
			});
		}

	</script>

</body>
</html>